#ifndef WIDGETBUTTON_H
#define WIDGETBUTTON_H

#include "Widget.h"
#include <SFML/Graphics.hpp>

class Menu;

class WidgetButton : public Widget
{
    public:
        WidgetButton(Menu*, int,int,int,int,std::string,int);
        virtual void onEvent(sf::Event*);
        virtual void onRender(sf::RenderWindow*);
        virtual void updateGfx();
        virtual ~WidgetButton();
    protected:
        Menu* menu;
        int textSize;
        int w, h;
        sf::RectangleShape box;
        sf::Text text;
        bool hover;

};

#endif // WIDGETBUTTON_H
